package com.hotel.dao.function;

import com.hotel.entity.Function;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Entity com.hotel.entity.Function
 */
@Mapper
public interface FunctionMapper extends BaseMapper<Function> {
    @Select("<script>" +
            "select * from function where parent_number = #{number}" +
            "</script>")
    List<Function> findFunctionListByNumber(@Param("number")String Number);
}




